Skip to content

Time out policy #4

Open
wants to merge 1 commit into
base: tf-upgrade
Choose a base branch
from
Open

Time out policy #4

wants to merge 1 commit into from

Conversation

morga471
Copy link

Had an ad-hoc meeting with Security/OIS and they requested a new ECR policy to expire images that are older than a year.
I mentioned this can break clusters that have been out in the env for a long time if they are not actively maintained, and that was an acceptable risk from their perspective, with the addition that a cluster shouldn't exist without maintenance for over a year.

Not sure how to test this directly, but tf validate passed.

@morga471 morga471 self-assigned this Mar 28, 2025
@morga471 morga471 changed the base branch from master to tf-upgrade March 28, 2025 16:09
@badra001
Copy link
Contributor

badra001 commented Apr 2, 2025

It is not an acceptable risk. Breaking things without some user action is poor practice. Can we find out how many images are out there which have images older than 365 days? And if any of them are in use?

@morga471
Copy link
Author

morga471 commented Apr 3, 2025

It is not an acceptable risk. Breaking things without some user action is poor practice. Can we find out how many images are out there which have images older than 365 days? And if any of them are in use?
I wasn't sure... but I was interested in finding the answer ->
ECR IMAGES:
2025-04-02 22:03:11,478 [INFO] aws_resource_management.reporting - Total images found: 11790
2025-04-02 22:03:11,478 [INFO] aws_resource_management.reporting - Images older than 1 year: 2141

@morga471
Copy link
Author

morga471 commented Apr 4, 2025

ecr_old_images_20250404_133458.xlsx
Output from the Gliffy tool :)

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants